<template>
  <div class="page">
    <p class="page_title">404</p>
    <div class="page_btn">
      <el-button @click="exit">
        返回主页
      </el-button>
    </div>
  </div>
</template>

<script setup>
import {ref} from 'vue'
import {ElMessageBox} from 'element-plus'
import router from "@/router/index.js";

const exit = () => {
  ElMessageBox.confirm('退出登录，是否继续?', {
    confirmButtonText: '确定',
    cancelButtonText: '取消',
    type: 'warning'
  }).then(() => {
    router.push({
      path: '/home'
    })
  })
}
</script>

<style scoped>
.page {
  background: #303131;
  background-blend-mode: multiply, multiply;
  height: 100vh; /* 使用视口高度单位 */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.page_title {
  font-size: 160px;
  color: #FFF;
  margin-bottom: 20px;
}

.page_btn {
  display: flex;
}
</style>